package org.nico.cb.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.nico.aoc.scan.annotations.Label;
import org.nico.aoc.scan.annotations.Service;
import org.nico.cb.constant.CacheKey;
import org.nico.cb.constant.MessageConstant;
import org.nico.cb.constant.type.AccountType;
import org.nico.cb.constant.type.Status;
import org.nico.cb.dao.AccountDao;
import org.nico.cb.dao.ArticleContentDao;
import org.nico.cb.dao.ArticleDao;
import org.nico.cb.domain.Account;
import org.nico.cb.domain.article.Article;
import org.nico.cb.domain.article.ArticleContent;
import org.nico.cb.exception.QueryException;
import org.nico.cb.service.AccountService;
import org.nico.cb.service.ArticleContentService;
import org.nico.cb.service.ArticleService;
import org.nico.cb.util.CenteringUtils;
import org.nico.cb.util.JedisUtils;
import org.nico.cb.util.Md5Utils;
import org.nico.db.page.DBPage;
import org.nico.noson.Noson;
import org.nico.util.collection.CollectionUtils;

/** 
 *
 * 
 * @author nico
 * @version createTime：2018年4月15日 上午12:40:18
 */
@Service
public class ArticleContentServiceImpl implements ArticleContentService{

	@Label
	private ArticleContentDao articleContentDao;

	@Override
	public ArticleContent get(Object id) {
		return articleContentDao.get(id);
	}

	@Override
	public List<ArticleContent> get(Map<String, Object> criterias, DBPage page) {
		return articleContentDao.get(criterias, page);
	}

	@Override
	public long update(ArticleContent entity) {
		return articleContentDao.update(entity);
	}

	@Override
	public ArticleContent insert(ArticleContent entity) {
		return articleContentDao.insert(entity);
	}

	@Override
	public boolean delete(ArticleContent entity) {
		return articleContentDao.delete(entity);
	}

	@Override
	public boolean deleteById(Object id) {
		return articleContentDao.deleteById(id);
	}

	@Override
	public long count(Map<String, Object> criterias) {
		return articleContentDao.count(criterias);
	}

	
}
